﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000279 RID: 633
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueNousSubStoryInfo : IMessage<ChessRogueNousSubStoryInfo>, IMessage, IEquatable<ChessRogueNousSubStoryInfo>, IDeepCloneable<ChessRogueNousSubStoryInfo>, IBufferMessage
	{
		// Token: 0x1700084A RID: 2122
		// (get) Token: 0x06001C68 RID: 7272 RVA: 0x000516C1 File Offset: 0x0004F8C1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueNousSubStoryInfo> Parser
		{
			get
			{
				return ChessRogueNousSubStoryInfo._parser;
			}
		}

		// Token: 0x1700084B RID: 2123
		// (get) Token: 0x06001C69 RID: 7273 RVA: 0x000516C8 File Offset: 0x0004F8C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueNousSubStoryInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700084C RID: 2124
		// (get) Token: 0x06001C6A RID: 7274 RVA: 0x000516DA File Offset: 0x0004F8DA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueNousSubStoryInfo.Descriptor;
			}
		}

		// Token: 0x06001C6B RID: 7275 RVA: 0x000516E1 File Offset: 0x0004F8E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueNousSubStoryInfo()
		{
		}

		// Token: 0x06001C6C RID: 7276 RVA: 0x000516E9 File Offset: 0x0004F8E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueNousSubStoryInfo(ChessRogueNousSubStoryInfo other) : this()
		{
			this.chessRogueSubStoryId_ = other.chessRogueSubStoryId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001C6D RID: 7277 RVA: 0x0005170E File Offset: 0x0004F90E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueNousSubStoryInfo Clone()
		{
			return new ChessRogueNousSubStoryInfo(this);
		}

		// Token: 0x1700084D RID: 2125
		// (get) Token: 0x06001C6E RID: 7278 RVA: 0x00051716 File Offset: 0x0004F916
		// (set) Token: 0x06001C6F RID: 7279 RVA: 0x0005171E File Offset: 0x0004F91E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ChessRogueSubStoryId
		{
			get
			{
				return this.chessRogueSubStoryId_;
			}
			set
			{
				this.chessRogueSubStoryId_ = value;
			}
		}

		// Token: 0x06001C70 RID: 7280 RVA: 0x00051727 File Offset: 0x0004F927
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueNousSubStoryInfo);
		}

		// Token: 0x06001C71 RID: 7281 RVA: 0x00051735 File Offset: 0x0004F935
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueNousSubStoryInfo other)
		{
			return other != null && (other == this || (this.ChessRogueSubStoryId == other.ChessRogueSubStoryId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001C72 RID: 7282 RVA: 0x00051764 File Offset: 0x0004F964
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ChessRogueSubStoryId != 0U)
			{
				num ^= this.ChessRogueSubStoryId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001C73 RID: 7283 RVA: 0x000517A3 File Offset: 0x0004F9A3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001C74 RID: 7284 RVA: 0x000517AB File Offset: 0x0004F9AB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001C75 RID: 7285 RVA: 0x000517B4 File Offset: 0x0004F9B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ChessRogueSubStoryId != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.ChessRogueSubStoryId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001C76 RID: 7286 RVA: 0x000517E8 File Offset: 0x0004F9E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ChessRogueSubStoryId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ChessRogueSubStoryId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001C77 RID: 7287 RVA: 0x00051826 File Offset: 0x0004FA26
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueNousSubStoryInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ChessRogueSubStoryId != 0U)
			{
				this.ChessRogueSubStoryId = other.ChessRogueSubStoryId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001C78 RID: 7288 RVA: 0x00051857 File Offset: 0x0004FA57
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001C79 RID: 7289 RVA: 0x00051860 File Offset: 0x0004FA60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 120U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.ChessRogueSubStoryId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000BCF RID: 3023
		private static readonly MessageParser<ChessRogueNousSubStoryInfo> _parser = new MessageParser<ChessRogueNousSubStoryInfo>(() => new ChessRogueNousSubStoryInfo());

		// Token: 0x04000BD0 RID: 3024
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000BD1 RID: 3025
		public const int ChessRogueSubStoryIdFieldNumber = 15;

		// Token: 0x04000BD2 RID: 3026
		private uint chessRogueSubStoryId_;
	}
}
